package com.pokermind.operator;

import com.pokermind.model.dto.PlayerBehaviorResponse;
import org.springframework.stereotype.Service;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.math.BigDecimal;

/**
 * 简化行为操作器 - 最小实现
 * 用于解决测试环境的依赖问题
 * 
 * @author PokerMind Team
 */
@Service
public class SimplifiedBehaviorOperator {
    
    private static final Logger logger = LoggerFactory.getLogger(SimplifiedBehaviorOperator.class);
    
    /**
     * 获取玩家行为数据 - 最小实现
     */
    public PlayerBehaviorResponse getPlayerBehavior(Long userId) {
        logger.debug("最小实现 - 获取玩家行为数据: userId={}", userId);
        
        // 返回默认的行为数据
        PlayerBehaviorResponse response = new PlayerBehaviorResponse();
        response.setPlayerId(userId);
        response.setPlayerName("Player" + userId);
        response.setVpipRate(BigDecimal.valueOf(25)); // 默认25%
        response.setAggressionLevel("MODERATE");
        response.setWinRate(BigDecimal.valueOf(2.5));
        response.setPlayingStyle("TIGHT_AGGRESSIVE");
        response.setRecentForm("STABLE");
        response.setDataReliable(false);
        response.setTotalHands(0);
        
        return response;
    }
    
    /**
     * 更新玩家行为数据 - 最小实现
     */
    public void updatePlayerBehavior(Long userId) {
        logger.debug("最小实现 - 更新玩家行为数据: userId={}", userId);
        // 空实现，仅记录日志
    }
}